"OSTree.RepoPullFlags",
"OSTree.RepoRemoteChange",
"OSTree.RepoResolveRevExtFlags",
- "OSTree.SePolicy",
"OSTree.SePolicyRestoreconFlags",
"OSTree.StaticDeltaGenerateOpt",
"OSTree.Sysroot",
init_function_expression = "|_ptr| ()"
clear_function_expression = "|_ptr| ()"
+[[object]]
+name = "OSTree.SePolicy"
+status = "generate"
+ [[object.function]]
+ # has an unused raw pointer parameter so we wrap it by hand
+ name = "fscreatecon_cleanup"
+ ignore = true
+
[[object]]
name = "OSTree.Sign"
status = "generate"
status = "generate"
[[object.function]]
# low-level functions with unsafe APIs
- pattern = "cmp_checksum_bytes|checksum_inplace_to_bytes|hash_object_name"
+ pattern = "cmp_checksum_bytes|checksum_inplace_from_bytes|checksum_inplace_to_bytes|checksum_b64_inplace_from_bytes|checksum_b64_inplace_to_bytes|hash_object_name"
ignore = true
[[object.function]]
// unsafe { TODO: call ostree_sys:ostree_checksum_b64_from_bytes() }
//}
-//pub fn checksum_b64_inplace_from_bytes(csum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, buf: &str) {
-// unsafe { TODO: call ostree_sys:ostree_checksum_b64_inplace_from_bytes() }
-//}
-
-//pub fn checksum_b64_inplace_to_bytes(checksum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 28 }; 32, buf: u8) {
-// unsafe { TODO: call ostree_sys:ostree_checksum_b64_inplace_to_bytes() }
-//}
-
//#[cfg(any(feature = "v2016_8", feature = "dox"))]
//pub fn checksum_b64_to_bytes(checksum: &str) -> /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32 {
// unsafe { TODO: call ostree_sys:ostree_checksum_b64_to_bytes() }
}
}
-//pub fn checksum_inplace_from_bytes(csum: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32, buf: &str) {
-// unsafe { TODO: call ostree_sys:ostree_checksum_inplace_from_bytes() }
-//}
-
//pub fn checksum_to_bytes(checksum: &str) -> /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 3 }; 32 {
// unsafe { TODO: call ostree_sys:ostree_checksum_to_bytes() }
//}
value.get().expect("Return Value for property `rootfs-dfd` getter").unwrap()
}
}
-
- //pub fn fscreatecon_cleanup(unused: /*Unimplemented*/Option<Fundamental: Pointer>) {
- // unsafe { TODO: call ostree_sys:ostree_sepolicy_fscreatecon_cleanup() }
- //}
}
impl fmt::Display for SePolicy {
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ ff904f0)
+from gir-files (https://github.com/gtk-rs/gir-files @ 203ae47)
/// Unfortunately, the underlying libostree function has no way to report parsing errors. If the
/// string is not a valid SHA256 string, the program will abort!
pub fn from_hex(checksum: &str) -> Checksum {
- // TODO: implement by hand to avoid stupid assertions?
assert_eq!(checksum.len(), HEX_LEN);
unsafe {
// We know checksum is at least as long as needed, trailing NUL is unnecessary.
/// Invalid base64 characters will not be reported, but will cause unknown output instead, most
/// likely 0.
pub fn from_base64(b64_checksum: &str) -> Checksum {
- // TODO: implement by hand for better error reporting?
assert_eq!(b64_checksum.len(), B64_LEN);
unsafe {
let buf = g_malloc0(BYTES_LEN) as *mut [u8; BYTES_LEN];
Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1)
-from gir-files (https://github.com/gtk-rs/gir-files @ ff904f0)
+from gir-files (https://github.com/gtk-rs/gir-files @ 203ae47)